package com.example.springinit2.service.impl;

import com.example.springinit2.model.User;
import com.example.springinit2.service.AspectService;
import org.springframework.stereotype.Component;

import java.util.ArrayList;
import java.util.List;

@Component
public class AspectServiceImpl implements AspectService {


  @Override
  public List<User> getUser(User user) {
    user.setName("zhangsan");
    user.setAge(20);
	return new ArrayList<User>(){{add(user);}};
  }
}
